package public

import (
	"io/ioutil"
	"net/http"
)

//发起get请求
func HttpGet(url string) (string,error){
	resp,err:=http.Get(url)
	if err!=nil{
		return "",err
	}
	defer resp.Body.Close()
	body,err:=ioutil.ReadAll(resp.Body)
	if err!=nil{
		return "",err
	}
	return string(body),nil
}


//发起post请求
func HttpPost(url string,data map[string]string){

}

